package jmine.tec.aom.domain.impl;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import jmine.tec.aom.domain.AbstractPropertyValue;
import jmine.tec.aom.exception.FillException;
import jmine.tec.persist.annotation.DiscriminatorComment;
import bancosys.tec.component.Documentation;

/**
 * {@link AbstractPropertyValue} implementation for the {@link String} type.
 * 
 * @author jrenaut
 */
@Entity
@DiscriminatorValue("9")
@DiscriminatorComment("STRING")
public class StringPropertyValue extends AbstractPropertyValue<String> {

    /**
     * {@inheritDoc}
     */
    @Override
    @Column(name = "VL_STRING")
    @Documentation("VALOR DA CARACTERISTICA DO TIPO STRING OU REDIRECT")
    public String getValue() {
        return super.getValue();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void setValueAsString(String stringValue) throws FillException {
        this.doSetValue(stringValue);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void doSetValue(String stringValue) throws FillException {
        this.setValue(stringValue);
    }

}
